#!bin/bash
#Bai 6

echo -n "Nhap vao 1 chuoi khong co khoang trang:"; read str

echo -n "Nhap mot so nguyen duong N:"; read N

#declare -i m="$N + 1"
let m="$N + 1"


if [ $m -gt 1 -a `expr index "$str" ' '` -eq 0 ]
then
		for((i=1;i<=N;i++))
		do
			echo $str
		done
else
	echo "khong in"
fi
